home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / scroll2a / scroll.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1999-09-18  |  2.6 KB  |  91 lines

  1. VERSION 5.00
  2. Begin VB.Form Form1 
  3.    AutoRedraw      =   -1  'True
  4.    BackColor       =   &H80000012&
  5.    Caption         =   "Scroll by Scott Wellbrock"
  6.    ClientHeight    =   4665
  7.    ClientLeft      =   60
  8.    ClientTop       =   345
  9.    ClientWidth     =   5505
  10.    ClipControls    =   0   'False
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   4665
  13.    ScaleWidth      =   5505
  14.    StartUpPosition =   2  'CenterScreen
  15.    Begin VB.CommandButton Command3 
  16.       Caption         =   "Diagonal"
  17.       Height          =   375
  18.       Left            =   120
  19.       TabIndex        =   2
  20.       Top             =   4080
  21.       Width           =   1095
  22.    End
  23.    Begin VB.Timer Timer2 
  24.       Enabled         =   0   'False
  25.       Interval        =   1
  26.       Left            =   120
  27.       Top             =   3240
  28.    End
  29.    Begin VB.CommandButton Command1 
  30.       Caption         =   "Switch"
  31.       Height          =   375
  32.       Left            =   120
  33.       TabIndex        =   1
  34.       Top             =   3720
  35.       Width           =   1095
  36.    End
  37.    Begin VB.Timer Timer1 
  38.       Interval        =   1
  39.       Left            =   600
  40.       Top             =   3240
  41.    End
  42.    Begin VB.Label Label1 
  43.       BackStyle       =   0  'Transparent
  44.       Caption         =   "Scott Wellbrock"
  45.       BeginProperty Font 
  46.          Name            =   "MS Sans Serif"
  47.          Size            =   12
  48.          Charset         =   0
  49.          Weight          =   700
  50.          Underline       =   0   'False
  51.          Italic          =   0   'False
  52.          Strikethrough   =   0   'False
  53.       EndProperty
  54.       ForeColor       =   &H0000FF00&
  55.       Height          =   375
  56.       Left            =   1320
  57.       TabIndex        =   0
  58.       Top             =   0
  59.       Width           =   2415
  60.    End
  61. Attribute VB_Name = "Form1"
  62. Attribute VB_GlobalNameSpace = False
  63. Attribute VB_Creatable = False
  64. Attribute VB_PredeclaredId = True
  65. Attribute VB_Exposed = False
  66. Private Sub Command3_Click()
  67. Timer1.Enabled = True
  68. Timer2.Enabled = True
  69. End Sub
  70. Private Sub Command1_Click()
  71. If Timer1.Enabled = True Then
  72. Timer1.Enabled = False
  73. Timer2.Enabled = True
  74. Command1.Caption = "Vertical"
  75. Else: Timer1.Enabled = True
  76. Command1.Caption = "Horizontal"
  77. Timer2.Enabled = False
  78. End If
  79. End Sub
  80. Private Sub Form_Load()
  81. Label1.Move -2300, 0
  82. End Sub
  83. Private Sub Timer1_Timer()
  84. Label1.Left = Label1.Left + 20
  85. If Label1.Left > Form1.Width Then Label1.Left = -2300
  86. End Sub
  87. Private Sub Timer2_Timer()
  88. Label1.Top = Label1.Top + 20
  89. If Label1.Top > Form1.Height Then Label1.Top = -10
  90. End Sub
  91.